package com.ruoyi.sms.config;

import lombok.Data;
import org.junit.jupiter.api.Test;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Author: Jamnsin
 * @Date: 2021/1/13 4:02 下午
 */
@Data
@Component
@ConfigurationProperties(prefix = "sms")
public class SmsConfigTool {

    private Map<String,SmsConfigs> smsConfig;

    @Data
    public static class SmsConfigs {

        private String baseUrl;

        private String username;

        private String password;

        private String sender;

        private String apiKey;

        private String apiKeyPrefix;

        private String apiSecret;

        private String signId;

        private String templateId;

        private Map<String,String> senders;

        private String callbackUrl;

        private Map<String,String> notice;

        private Map<String,String> market;

        private String appId;

        private String apiName;

    }
}
